package com.darsystems.foghourz.client;

import com.google.gwt.widgetideas.graphics.client.Color;
import com.google.gwt.widgetideas.graphics.client.GWTCanvas;
import com.googlecode.gchart.client.GChartCanvasLite;

public class GWTCanvasBasedCanvasLite extends GWTCanvas implements
		GChartCanvasLite {

	// GChartCanvasLite requires CSS/RGBA color strings, but
    // GWTCanvas uses its own Color class instead, so we wrap:
	@Override
    public void setStrokeStyle(String cssColor) {
    // Sharp angles of default MITER can overwrite adjacent pie slices
       setLineJoin(GWTCanvas.ROUND);
       setStrokeStyle(new Color(cssColor));
    }
	@Override
    public void setFillStyle(String cssColor) {
       setFillStyle(new Color(cssColor));
    }
    
}
